package com.dacool.http;

import java.util.HashMap;

public class RegRequest extends BaseRequest {
	/**
	 * 入参：recommendId:推荐ID（） mobileNo:手机号 email:邮箱 pwd:密码 region:地区 sign:签名字符串
	 */

	

	public RegRequest setRecommendId(String recommendId) {
		this.recommendId = recommendId;
		return this;
	}

	public RegRequest setMobileNo(String mobileNo) {
		this.mobileNo = mobileNo;
		return this;
	}

	public RegRequest setEmail(String email) {
		this.email = email;
		return this;
	}

	public RegRequest setPwd(String pwd) {
		this.pwd = pwd;
		return this;
	}

	public RegRequest setRegion(int region) {
		this.region = region;
		return this;
	}
	
	private String recommendId;
	private String mobileNo;
	private String email;
	private String pwd;
	private int region = 1;

	@Override
	protected String url() {
		// TODO Auto-generated method stub
		return "reg.jsn";
	}
	
	@Override
	protected void generateParams(HashMap<String, Object> map) {
		map.put("recommendId", recommendId) ;
		map.put("mobileNo", mobileNo);
		map.put("email", email);
		map.put("pwd", pwd);
		map.put("region", region);
	}

}
